package com.mo.configuration;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.Random;

/**
 * 配置类 proxyBeanMethods属性, 是否代理方法, 生成单例bean
 *
 * @author 墨渐生微
 * @program mo-all
 * @apiNote
 * @since 2022/6/24
 */
@Configuration(proxyBeanMethods = false)
public class ConfigProxy {

    @Bean
    public String random() {
        Random random = new Random();
        return String.valueOf(random.nextInt());
    }

}
